package cn.kgc.mapper;

import cn.kgc.pojo.Disburse;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 李梦煊
 * @version 1.0
 * @date 2022/10/14 - 16:53
 */
@Repository
public interface DisburseMapper {
    List<Disburse> getAllDisbure(@Param("currentPage") Integer currentPage,
                                 @Param("limit") Integer limit,
                                 @Param("clientName") String clientName);

    int getTotalCount(@Param("clientName") String clientName);

    //饼图
    List<Map<Integer,String>> count();
//柱状图




    //报表
    List<Map<Integer,String>> column();

    //新增
    int addDisburse(Disburse disburse);
    //修改
    int updateDisById(Disburse disburse);

    //删除
    int delDisById(@Param("paidId") String paidId);

}
